#ifndef __SCNS_IIC_H__
#define __SCNS_IIC_H__

#include "ScnsConfig.h"

#if defined(SCNS_IIC_ENABLE)&&SCNS_IIC_ENABLE==1

#include "ScnsBspIic.h"

#include "ScnsYing.h"

typedef enum
{
    SCNS_IIC_STATUS_OK=SCNS_YING_STATUS_OK,
    SCNS_IIC_STATUS_BSP_FAILED=SCNS_YING_STATUS_BSP_FAILED,
    SCNS_IIC_STATUS_FAILED=SCNS_YING_STATUS_FAILED,
}ScnsIicStatus;

extern ScnsIicStatus scnsIicInit(ScnsIicEnum iicN);
extern ScnsIicStatus scnsIicWrite(ScnsIicEnum iicN,uint8 device,const uint8*addr,uint8 addrLen,const uint8*data,uint8 dataLen);
extern ScnsIicStatus scnsIicRead(ScnsIicEnum iicN,uint8 device,const uint8*addr,uint8 addrLen,uint8*data,uint8 dataLen);
#endif
#endif

